<?php

use Illuminate\Routing\Router;
use Illuminate\Support\Facades\Route;
use Dcat\Admin\Admin;
use App\Admin\Controllers\VersionController;
Admin::routes();

Route::group([
    'prefix'     => config('admin.route.prefix'),
    'middleware' => config('admin.route.middleware'),
], function (Router $router) {

    $router->get('/', [\App\Admin\Controllers\HomeController::class, 'index']);
    $router->resource('version',VersionController::class);
    $router->resource('app_info', \App\Admin\Controllers\AppInfoController::class);
    $router->get('setting/add', [\App\Admin\Controllers\SettingController::class,'add']);


    $router->resource('member_benefits', \App\Admin\Controllers\MemberBenefitController::class);
    $router->resource('member', \App\Admin\Controllers\MemberController::class);
    $router->resource('user', \App\Admin\Controllers\UserController::class);
    $router->resource('task', \App\Admin\Controllers\TaskController::class);
    $router->resource('feedback', \App\Admin\Controllers\FeedbackController::class);
    $router->resource('case', \App\Admin\Controllers\CaseController::class);
});
